package similan.br19;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean(name = "orderListView")
@ViewScoped
public class OrderListView implements Serializable {

	private static final long serialVersionUID = 3731296212514757021L;

	private List<Player> players;

	public OrderListView() {
		players = new ArrayList<Player>();

		players.add(new Player("Messi 10", 10, 1));
		players.add(new Player("Iniesta 8", 8, 2));
		players.add(new Player("Iniesta2 8", 8, 3));
		players.add(new Player("Villa 7", 7, 4));
		players.add(new Player("Villa2 7", 7, 5));
		players.add(new Player("Xavi 6", 6, 6));
		players.add(new Player("Messi 10", 10, 7));
		players.add(new Player("Iniesta 8", 8, 8));
		players.add(new Player("Iniesta2 8", 8, 9));
		players.add(new Player("Villa 7", 7, 10));
		players.add(new Player("Villa2 7", 7, 11));
		players.add(new Player("Xavi 6", 6, 12));
		players.add(new Player("Messi 10", 10, 13));
		players.add(new Player("Iniesta 8", 8, 14));
		players.add(new Player("Iniesta2 8", 8, 15));
		players.add(new Player("Villa 7", 7, 16));
		players.add(new Player("Villa2 7", 7, 17));
		players.add(new Player("Xavi 6", 6, 18));
	}

	public List<Player> getPlayers() {
		return players;
	}

	public void setPlayers(List<Player> players) {
		this.players = players;
	}

}
